home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1980-05-17 | 717 b | 17 lines |
- '*********************Err...I can't think of a Title.....*********************
- Rem Although the loops we have shown are very useful and often essential,you
- Rem can't always rely on them in more complex programs.For a more detailed
- Rem explanation of subroutines,look at the on disk document files.
- Rem Where would you need to use a subroutine?Well,imagine that in a game you
- Rem had made,you had a main program loop,and had some `special things for the
- Rem computer to do when the player had won-But you couldn't include these in
- Rem the main bit because you only want them to occur at certain points.
- MAIN:
- Print "The Main routine!"
- Wait 30
- Gosub SUBBIT
- Gosub MAIN
- SUBBIT:
- Print "The subroutine"
- Wait 10
- Return